package com.itheima09;

/**
 * @author Xiao
 * @date 2021/7/14
 */
public class Teacher {
    public void checkScore (int score) throws ScoreException {
        if (score < 0 ||score > 100) {
//            throw new ScoreException();
        throw new ScoreException("您输入的分数有误，请输入0-100之间的分数。");
        } else {
            System.out.println("分数正常");
        }
    }
}
